package com.ruoyi.good.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物资信息对象 good_info
 *
 * @author rockvan
 * @date 2023-04-09
 */
public class GoodInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物资编号 */
    private Long id;

    /** 类型id */
    @Excel(name = "类型id")
    private Long typeId;

    /** 物资名称 */
    @Excel(name = "物资名称")
    private String name;

    /** 物资图片 */
    @Excel(name = "物资图片")
    private String img;

    /** 物资规格 */
    @Excel(name = "物资单位")
    private String size;


    /** 创建人 */
    @Excel(name = "创建人")
    private String createBy;

    /** 库存 */
    @Excel(name = "库存")
    private Long total;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Integer isDelete;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private Long version;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setSize(String size)
    {
        this.size = size;
    }

    public String getSize()
    {
        return size;
    }
    public void setTotal(Long total)
    {
        this.total = total;
    }

    public Long getTotal()
    {
        return total;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setIsDelete(Integer isDelete)
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete()
    {
        return isDelete;
    }
    public void setVersion(Long version)
    {
        this.version = version;
    }

    public Long getVersion()
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("name", getName())
            .append("img", getImg())
            .append("size", getSize())
            .append("createBy", getCreateBy())
            .append("remark", getRemark())
            .append("total", getTotal())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .append("version", getVersion())
            .toString();
    }
}
